// f_debit.h	0.1	<2012-05-11>	<BARBAY Thomas>
#ifndef F_DEBIT_H
#define F_DEBIT_H

#include <QMainWindow>
#include "thread_debit.h"
#include <QCloseEvent>
#include <QMessageBox>
#include <QString>
#include <fstream>

namespace Ui {
    class F_Debit;
}

class F_Debit : public QMainWindow
{
    Q_OBJECT

private:
    // ATTRIBUTs ----------------------------------------------------------------
    Ui::F_Debit *ui;
    const char *cNomFichierLog ;
    std::ofstream FichierLog ;
    int  nNombreMaxMateriels ;
    // METHODEs -----------------------------------------------------------------
    void MettreAJourFichierDeLog(QString) ;
     QTimer * timer ;


public:
    // METHODEs -----------------------------------------------------------------
    // CONSTRUCTEURs et DESTRUCTEURs
    explicit F_Debit(QWidget *parent = 0);
    ~F_Debit();
    // ATTRIBUTs ----------------------------------------------------------------
    Thread_Debit Thread_De_Debit;
    QVector<InfoDebit>ListeDebitsASurveiller;


private slots:
    // METHODEs -----------------------------------------------------------------
    void on_Bt_Demarrer_clicked();

    void Slot_AfficherDebit(QString) ;

    void Slot_AfficherHoteInjoignable(QString) ;

    void Slot_AlerterDebitfaible(QString) ;

    void Slot_BarreDeProgression(int) ;

    void on_actionImprimer_triggered();

    void Slot_GererPeriodicite() ;

    void on_Bt_Arreter_clicked();




protected:
    // METHODEs -----------------------------------------------------------------
    void closeEvent(QCloseEvent* event);
};

//------------------------------------------------------------------------------
#endif // F_DEBIT_H
//------------------------------------------------------------------------------
